-- GENERATED SPELL FOR [Deathguard Hicks] --


function spell0_31715(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31715', 5271, 1)
end

function spell1_31715(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31715', 575, 1)
end

function Sorts_31715(pUnit, Event)
local choix_sorts_31715 = math.random(0, 1)
if choix_sorts_31715 == 0 then
pUnit:RegisterEvent('spell0_31715', 1, 1)
end
if choix_sorts_31715 == 1 then
pUnit:RegisterEvent('spell1_31715', 1, 1)
end
end

function mob31715_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31715', math.random(1500, 3000), 1)
end

function mob31715_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31715_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31715_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31715, 1, 'mob31715_Action')
RegisterUnitEvent(31715, 2, 'mob31715_Leave')
RegisterUnitEvent(31715, 3, 'mob31715_Kill')
RegisterUnitEvent(31715, 4, 'mob31715_Die')
